package com.zxy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients//作用：会扫描我们包里面所有带注解@FeignClient的接口，然后生成代理
//加上 @EnableDiscoveryClient 具有服务发现的功能
public class SentinalApp {

    public static void main(String[] args) {
        SpringApplication.run(SentinalApp.class, args);
    }

}
